import SwiftUI

// PhotoDetail
// 图片详情

struct PhotoDetail: View {
    var imageURL: URL

    var body: some View {
        AsyncImage(url: imageURL) { image in
            image
                .resizable()
                .scaledToFit()
        } placeholder: {
            ProgressView()
        }
        .navigationTitle("图片预览")
        .navigationBarTitleDisplayMode(.inline)
    }
}

#Preview {
    PhotoDetail(imageURL: URL(string: "http://62.234.45.120:1230/storage/bookImage/I6579c4fc2597d.jpeg")!)
}
